package com.nanjing.east.cloud;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @Author: XIECHAO260
 * @Desc:
 * @Date: 2018/11/26 14:08
 * @Modified By:
 * @Project PAY-GATEWAY
 */
@Configuration
@EnableAutoConfiguration
@ComponentScan
@Slf4j
@EnableScheduling
public class PayGatewayLauncher {


    public static void main(String[] args) {
        //启动一个应用
        //nohup java -Xms100M -Xmx500M -Dserver.port=8099  -jar pay-gateway-1.0-SNAPSHOT.jar -Dmerchant.code=1222 -Dapp.id=33333 >>pay-gateway.log &
        //nohup sh start.bash >>pay-gateway.log &
        //停止一个应用
        // ps -ef | grep pay-gateway | grep -v grep | awk '{print $2}' | xargs kill -9
        //System.out.println(StringUtils.split(args[0], "=")[1]);
        ////System.setProperty("merchantCode", StringUtils.split(args[0], "=")[1]);
        //System.setProperty("appId", StringUtils.split(args[1], "=")[1]);


        SpringApplication.run(PayGatewayLauncher.class, args);


    }

}
